﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Family.Core.Model;
using Family.Data.DBRepositories;
using NHibernate;

namespace Family.Tests.Infrastructure.Fake
{
    public class ProductRepositoryFake : ProductRepository
    {
        public ProductRepositoryFake(ISession session) : base(session) { }

        public override Product GetByName(string name)
        {
            return new Product(new Category {Name = "fake category"}) {Name = "fake product"};
        }

        public override void SaveOrUpdate(Product entity)
        {
            base.SaveOrUpdate(entity);
        }
    }
}
